package com.example.design_pattern.factory.methods.creator;


import com.example.design_pattern.factory.Pizza;
import com.example.design_pattern.factory.methods.product.*;
import com.example.design_pattern.factory.simple.PizzaTypeEnums;

public class ChicagoPizzaStore extends PizzaStore {

    Pizza createPizza(PizzaTypeEnums type) {
        switch (type) {
            case cheese:
                return new ChicagoStyleCheesePizza();
            case veggie:
                return new ChicagoStyleVeggiePizza();
            case clam:
                return new ChicagoStyleClamPizza();
            case pepperoni:
                return new ChicagoStylePepperoniPizza();
            default:
                return null;
        }
    }
}
